/*
    遍历
 */
public class ArrWalk {
    public static void main(String[] args){

        int[] arr = {1,2,3,4,5};

        for (int i = 0;i < arr.length;i++){//复用性:用length,不用具体数值5
            System.out.println(arr[i]);
        }


    }
}
